package com.yujn.bean.param;

import lombok.Data;

import javax.validation.constraints.*;

@Data
public class UpdateValid{
    @NotBlank(message = "姓名不允许为空")
    private String name;

    @Max(value = 200,message = "年龄不能大于200岁")
    @Min(value = 0,message = "年龄不能小于0岁")
    private Integer age;

    @Pattern(regexp = "^[A-Za-z0-9]{3}-[A-Za-z0-9]{5}-[A-Za-z0-9]{3}$",message = "订单号不合法")
    private String orderNumber;
}
